/**
 * 
 */
package com.login.gwj.services;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;


import com.login.gwj.services.*;
import com.login.gwj.domain.*;
import com.login.gwj.dao.*;

/**
 * @author Administrator
 * 
 */
@Transactional
public class receiptServiceImpl implements receiptService {

	@Resource
	receiptDao receiptDao;

	public void addreceipt(receipt receipt){
		// TODO Auto-generated method stub
		receiptDao.addreceipt(receipt);
		
	}



	public int[] pageNumber(int postAmount, String pageNumberStr, int pageSize) {
		// TODO Auto-generated method stub
		return receiptDao.pageNumber(postAmount,pageNumberStr,pageSize);
	}

	public List<receipt> allreceipt(String string, int pageNumber, int pageSize) {
		// TODO Auto-generated method stub
		return receiptDao.allreceipt(string, pageNumber,pageSize);
	}

	public int postAmount(int itemId) {
		// TODO Auto-generated method stub
		return receiptDao.postAmount(itemId);
	}



	public void deletereceipt(String receiptId) {
		// TODO Auto-generated method stub
		receiptDao.deletereceipt(receiptId);
	}

}
